package com.aaa.web.dao.webnoticedao;

import com.aaa.entity.Notice;
import com.aaa.web.commons.NoticeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface WebNoticeDao {
    /**获取所有公告或按条件查询公告*/
    List<Map> getAllNotice(NoticeQuery query);
    /**获取公告信息的数量*/
    Integer getAllNoticeCount(NoticeQuery query);
    /**根据当前的noticeId删除广告*/
    int delNoticeById(Integer noticeId);

    int updateNotice(Notice notice);

    int addNotice(Notice notice);
}
